//
//  BaseRequest.m
//  Yueshi
//
//  Created by yueshi_tech on 15/7/15.
//  Copyright (c) 2015年 悦食中国. All rights reserved.
//

#import "BaseRequest.h"
#import "TimeUtils.h"
@implementation BaseRequest
- (id)init
{
    if (self = [super init]) {
        
        self.app_id = @"1002";
        
        self.req_time = [TimeUtils getCurrentTime];
        
        self.v = [NSString stringWithFormat:@"%@",[SystemUtil getAppVersion]];
        
        self.imei = [SystemUtil getImei];
        
        self.version = [UIDevice currentDevice].systemVersion;
        
        self.push_id = [DefaultsHelper stringForKey:kChannelId];
        
        self.channel = kChannel;
        
        self.net_type = [SystemUtil getNetType];
    }
    return self;
}

+ (instancetype)param
{
    return [[self alloc] init];
}
@end
